home *** CD-ROM | disk | FTP | other *** search
/ SVM Mac 58 / CD-ROM N°58.iso / navigateurs / Netscape Folder / chrome / navigator / content / default / NetSupportConfirmCheckYN.xul < prev    next >
Encoding:
Extensible Markup Language  |  2000-04-19  |  3.1 KB  |  109 lines  |  [TEXT/MOSS]

  1. <?xml version="1.0"?> 
  2.  
  3.  
  4. <!-- The contents of this file are subject to the Netscape Public
  5. License Version 1.1 (the "License"); you may not use this file
  6. except in compliance with the License. You may obtain a copy of
  7. the License at http://www.mozilla.org/NPL/
  8.  
  9. Software distributed under the License is distributed on an "AS
  10. IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11. implied. See the License for the specific language governing
  12. rights and limitations under the License.
  13.  
  14. The Original Code is Mozilla Communicator client code, released
  15. March 31, 1998.
  16.  
  17. The Initial Developer of the Original Code is Netscape
  18. Communications Corporation. Portions created by Netscape are
  19. Copyright (C) 1998-1999 Netscape Communications Corporation. All
  20. Rights Reserved.
  21.  
  22. Contributor(s): ______________________________________. -->
  23.  
  24. <?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?> 
  25.  
  26. <!DOCTYPE window SYSTEM "chrome://navigator/locale/NetSupportConfirmCheckYN.dtd" >
  27.  
  28. <window xmlns:html="http://www.w3.org/TR/REC-html40"
  29.         xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  30.        >
  31.        <data>
  32.            <broadcaster id="NetDialog:Message"/>
  33.            <broadcaster id="NetDialog:CheckMessage"/>
  34.        </data>
  35.         <dialog>
  36.               <observes element="NetDialog:Message"   attribute="text" onbroadcast="onUpdate()"/>
  37.               <observes element="NetDialog:CheckMessage"   attribute="text" onbroadcast="onUpdate()"/>
  38.         </dialog>
  39.  
  40.   <html:script>
  41.     function onUpdate()
  42.     {
  43.         dump("onUpate \n");
  44.         var msg = document.getElementById("NetDialog:Message");
  45.         if ( msg)
  46.         {
  47.              var text = msg.getAttribute("text");
  48.             dump( text +"\n" );
  49.             var prompt = (document.getElementById("message"));
  50.             if ( prompt )
  51.             {
  52.                 dump(" setting message \n" );
  53.                 prompt.childNodes[0].nodeValue = text;
  54.             }
  55.         }
  56.         
  57.          var msg = document.getElementById("NetDialog:CheckMessage");
  58.         if ( msg)
  59.         {
  60.              var text = msg.getAttribute("text");
  61.             dump( text +"\n" );
  62.             var prompt = (document.getElementById("checkboxLabel"));
  63.             if ( prompt )
  64.             {
  65.                 dump(" setting message \n" );
  66.                 prompt.childNodes[1].nodeValue = text;
  67.             }
  68.         }
  69.     }    
  70. </html:script>
  71.           
  72.     
  73.     
  74.    <html:table>
  75.    <html:tr >
  76.        <html:td>
  77.            <html:img html:src="chrome://navigator/skin/questionl.gif"></html:img>
  78.        </html:td>
  79.        
  80.        <html:td>    
  81.            <html:span id="message">&m.label;</html:span>
  82.      </html:td>
  83.        
  84.  
  85.    </html:tr>
  86.  
  87.     
  88.   <html:tr>
  89.       <html:td>
  90.       <html:label id="checkboxLabel">
  91.            <html:input type="checkbox" id="checkbox"/>
  92.             &backwards.label;
  93.     </html:label>
  94.        </html:td>
  95.        <html:td>
  96.       </html:td>
  97.    </html:tr>
  98.   
  99.   <html:tr>            
  100.       <html:td>
  101.       </html:td>
  102.       <html:td html:align="justify">
  103.       <html:button id="OKButton">&yes.label;</html:button>
  104.       <html:button id ="CancelButton">&no.label;</html:button>
  105.         </html:td>
  106.  </html:tr>
  107.  </html:table>
  108. </window> 
  109.